package com.cqsw.utils;

import java.util.Random;

/**
 * @Classname ValiDateCodeGenerateUtils
 * @Description 验证码生成器
 * @Date 2022/6/14 9:50
 * @Created by Smith.Liu
 */
public class ValiDateCodeGenerateUtils {

    public static String GenerateFor6() {
        String code = "1234567890";
        String GenerateCode = "";
        char[] chars = code.toCharArray();
        for (int i = 0; i < 6; i++) {
            int v = (int) (Math.random() * chars.length);
            GenerateCode += v;
        }
        return GenerateCode;
    }

}
